package pratima.innerClass;

public class StaticInnerClass {
	
	private static String nameOut = "Name from Outer class";

	static class MyStaticClass {
		
		public void sayHello(){
			System.out.println("Hello from static inner class" +nameOut);
		}
	}
	
	
	public void setNameOut(String nameOut) {
		this.nameOut = nameOut;
	}


	public static void main(String[] args){
		StaticInnerClass.MyStaticClass demo = new StaticInnerClass.MyStaticClass();
		demo.sayHello();
		
		StaticInnerClass staticInnerClass = new StaticInnerClass();
		staticInnerClass.setNameOut("Modified class");
		
		demo.sayHello();
	}
}


//inner classes are used for obfuscation
// This is for protecting against reverse engineering